package cn.com.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.com.mapper.ProfessionSalaryMapper;
import cn.com.beans.ProfessionSalary;
import cn.com.service.ProfessionSalaryService;
@Service
public class ProfessionSalaryServiceImpl implements ProfessionSalaryService{

    @Resource
    private ProfessionSalaryMapper professionSalaryMapper;

    @Override
    public int deleteByPrimaryKey(Integer psId) {
        return professionSalaryMapper.deleteByPrimaryKey(psId);
    }

    @Override
    public int insert(ProfessionSalary record) {
        return professionSalaryMapper.insert(record);
    }

    @Override
    public int insertSelective(ProfessionSalary record) {
        return professionSalaryMapper.insertSelective(record);
    }

    @Override
    public ProfessionSalary selectByPrimaryKey(Integer psId) {
        return professionSalaryMapper.selectByPrimaryKey(psId);
    }

    @Override
    public int updateByPrimaryKeySelective(ProfessionSalary record) {
        return professionSalaryMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ProfessionSalary record) {
        return professionSalaryMapper.updateByPrimaryKey(record);
    }

    @Override
    public int findMoneyByPridAndYear(Integer prId, Integer year) {
        return professionSalaryMapper.findMoneyByPridAndYear(prId, year);
    }

}
